﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Chat.Business.Service.NetP2P
{

    [ServiceContract(CallbackContract = typeof(INetTcpChat))]
    public interface INetTcpChat
    {
        [OperationContract(IsOneWay = true)]
        void svcJoin(string uname);

        [OperationContract(IsOneWay = true)]
        void svcSendMessage(string msg, string from, List<string> to);
       
        [OperationContract(IsOneWay = true)]
        void svcGetUserList(string uName);

        [OperationContract(IsOneWay = true)]
        void svcSetUserList(string uName);

        [OperationContract(IsOneWay = true)]
        void svcSignOutChat(string from, List<string> to);

        [OperationContract(IsOneWay = true)]
        void svcUnJoin(string uname);
    }

    public interface INetTcpChatChannel : INetTcpChat, IClientChannel
    {
    }
}
